<!DOCTYPE html>
	<html>
	<head>
		<title>{$site_seo_title} {$site_name}</title>
		<meta name="keywords" content="{$site_seo_keywords}" />
		<meta name="description" content="{$site_seo_description}">
		<tc_include file="Public:head" />
		<link href="__TMPL__Public/css/slippry/slippry.css" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/datepicker/datepicker.css">
    <style type="text/css">
    .ret_status {
	font-size: 16px;
	color: #970F00;
}
    </style>
	</head>
<body class="body-white">
    <tc_include file="Public:nav" />
    
    <div class="container">
        <div class="row-fluid">
              <div class="span12">
              <div class="well">
					<span class="ret_status" id='span1'>{$str}</span>
              </div>
              </div>
        </div><!--div class="row-fluid"-->
        
        <div class="row-fluid">
            <div class="span9">
            	
			<form class="form-horizontal" method="post" action="{:U('Yd/Yddatelimit/index')}">
            	<div class="control-group">
					<label class="control-label" for="riqi">当前已发布的预订日期：</label>
					<div class="controls">
						<input id="riqi" type="text" value="{$old_date}" disabled readonly />
					</div>
				</div>
				<div class="control-group">
					 <label class="control-label" for="yddates">发布预订日期</label>
					<div class="controls">
						<input id="yddates" name="yddates" type="text" readonly />
					</div>
				</div>
				<div class="control-group">
					<div class="controls">
						 <button type="submit" class="btn">发布</button>
					</div>
				</div>
			</form>

            </div>

			<div class="span3">

            </div>
		</div>
		<tc_include file="Public:footer" />  
	</div><!--<div class="container tc-main">-->
    
    



    <!-- JavaScript -->
	<tc_include file="Public:scripts" />

    <script>
        $(function(){
			/*显示和设置日期选择控件*/
            $('#yddates').datepicker({
                format: 'yyyy-mm-dd',
                autoclose: true,
				todayBtn: true,
				todayHighlight: true,
				pickerPosition: "bottom-left"
            }).on('changeDate', function(ev){
                    $('#yddates').datepicker('hide');
					//更改了日期，提交更改并刷新页面
					//riqi = $("#yddates").val();
            });
			var _date = new Date();
			$('#yddates').val(_date.toLocaleDateString());
        });//$(function(){
           
    
    </script>
    <script src="__PUBLIC__/datepicker/bootstrap-datepicker.js"></script>
	{:hook('footer_end')}
</body>
</html>